<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <audio controls autoplay src="./test.mp3" id="audio">
    您的浏览器不支持html5的audio标签
    </audio>
    <script type="text/javascript">
    var audio = document.getElementById('audio')
    console.log(audio.currentTime)
    console.log(audio.volume)
    console.log(audio.duration)
    console.log(audio.buffered)
    console.log(audio.played)
    audio.muted= false;
    audio.volume = 100;
    // audio.canPlayType('audio/ogg');
    audio.load();
    audio.play();
    //audio.pause();

    </script>
</body>
</html>